home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / du_lib / xacc2 / simple1.c < prev    next >
C/C++ Source or Header  |  1994-09-14  |  497b  |  27 lines

  1. /* ein minimales XACC-Programm sieht nun in etwa so aus:*/
  2.  
  3. #include <aes.h>
  4. #include "xacc.h"
  5.  
  6. short    quit;
  7.  
  8. main()
  9. {
  10.     const char name[] = "mein Programm";
  11.     short    event, msgbuf[8];
  12.  
  13.     appl_init();
  14.     xacc_init( -1, name, sizeof( name ), 0x0000 );
  15.     for ( quit = 0; !quit ; ) {
  16.         event = evnt_multi( MU_MESAG, ..., msgbuf, ... );
  17.         if ( event & MU_MESAG ) {
  18.             if ( !xacc_message( msgbuf ) ) switch ( msgbuf[0] ) {
  19.                 ...
  20.             }
  21.         }
  22.     }
  23.     xacc_exit();
  24.     appl_exit();
  25.     return 0;
  26. }
  27.